<?php

$vSql = "
DELETE FROM
	cupom_categoria
WHERE
	cd_cupom = '{$_POST['cd_cupom']}'
";

db_trans();

if(!db_query($vSql)) {
	db_rollback();
	echo 0;
} else {
	db_commit();
	echo 1;
}
